package pack0713;

public class Test1 {
    public static void main(String[] args) {
        new Thread(()->{
            for (int i = 0; i <30 ; i++) {
                System.out.println(Thread.currentThread().getName()+":"+i);
            }
        },"线程一").start();


        new Thread(()->{
            for (int i = 0; i < 30; i++) {
                System.out.println(Thread.currentThread().getName()+":"+i);
            }
        },"线程二").start();
    }
}
